import React from 'react';

export default class Index extends React.Component{

    render() {
        return (
            <div>
                <h1>这是第一个页面</h1>
                <button onClick={this.handlerClick}>切换到第二个页面</button>
            </div>
        );
    }

    handlerClick()
    {
        this.props.navigation.navigate('Second');
    }
}
